/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.GrantsFacade;
import org.ipti.br.tag.entity.Grants;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class GrantsBO implements Serializable {

    @Inject
    private GrantsFacade grantsDAO;

    public GrantsFacade getGrantsDAO() {
        return grantsDAO;
    }

    public void create(Grants grants) {
        getGrantsDAO().create(grants);
    }

    public void edit(Grants grants) {
        getGrantsDAO().edit(grants);
    }

    public void remove(Grants grants) {
        getGrantsDAO().remove(grants);
    }

    public Grants find(Object id) {
        return getGrantsDAO().find(id);
    }

    public List<Grants> findAll() {
        return getGrantsDAO().findAll();
    }

    public void editForSynchronization(Grants grants) {
        getGrantsDAO().editForSynchronization(grants);
    }

    public boolean grantsExistForPersonageFunc(Long personageID, Long functionalityID) {
        return getGrantsDAO().grantsExistForPersonageFunc(personageID, functionalityID);
    }

    public List<Grants> grantsPerPersonage(Long personageID) {
        return getGrantsDAO().grantsPerPersonage(personageID);
    }
}
